<?php

namespace Acme\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\StoreBundle\Entity\Article
 */
class Article
{
    /**
     * @var integer $id
     */
    private $id;

    
    private $tags;
    
    public function addTag(Tag $tag)
    {
    	$tag->addArticle($this); // synchronously updated the inverse side    	    
    	$this->tags[] = $tag;    	
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
}